package com.qidian.mes.qc.controller;/**
 * ClassName:UncheckTaskController
 * Package:com.qidian.mes.qc.controller
 **/

import com.qidian.mes.pojo.UncheckTask;
import com.qidian.mes.qc.service.UncheckTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ppc
 * @Conpany study
 * @Description:
 * @Time 2024/4/17 17:15
 *
 **/
@CrossOrigin
@RestController
@RequestMapping("uncheck")
public class UncheckTaskController {
    @Autowired
    private UncheckTaskService uncheckTaskService;

    @RequestMapping("queryByPage")
    public Object queryByPage(UncheckTask uncheckTask, @RequestParam(defaultValue = "1") Integer page,@RequestParam(defaultValue = "10") Integer limit) {
        return uncheckTaskService.queryByPage(uncheckTask, page, limit);
    }

    @RequestMapping("save")
    public Object save(UncheckTask uncheckTask) {
        return uncheckTaskService.save(uncheckTask);
    }

    @RequestMapping("delete")
    public Object delete(Long invoicesId) {
        return uncheckTaskService.delete(invoicesId);
    }

    @RequestMapping("deletes")
    public Object deletes(Long[] invoicesIds) {
        return uncheckTaskService.deletes(invoicesIds);
    }

    @RequestMapping("update")
    public Object update(UncheckTask uncheckTask) {
        return uncheckTaskService.update(uncheckTask);
    }

}
